export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  searchLabelWidth: 110, //搜索项标题宽度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  column: [
    {
      label: "序号",
      prop: "id",
      hide: true,
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
    },
    {
      label: "商品code",
      prop: "pointsProductCode",
      type: "select",
      search: true,
      dicUrl: `/admin/mall/pointsProduct/select`,
      props: {
        label: 'name',
        value: 'id'
      },
      hide: true,
      span: 12
    },
    {
      label: "商品名称",
      prop: "pointsProductName",
      type: "input",
      span: 12
    },
    {
      label: "兑换金额",
      prop: "redeemMoney",
      type: "input",
      span: 12
    },
    {
      label: "兑换积分",
      prop: "redeemPoints",
      type: "input",
      span: 12
    },
    {
      label: "兑换数量",
      prop: "redeemAmount",
      type: "input",
      span: 12
    },
    {
      label: "兑换人手机号",
      prop: "redeemerPhone",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "兑换人卡号",
      prop: "redeemerPhoneCardNo",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "兑换状态",
      prop: "redeemStatus",
      type: 'select',
      slot: true,
      span: 24,
      rules: [{
        required: true,
        message: '请选择兑换状态',
        trigger: 'blur'
      }],
      dicData: [{
        label: '已领取',
        value: 'Y'
      }, {
        label: '未领取',
        value: 'N'
      }, {
        label: '已过期',
        value: 'G'
      }, {
        label: '已取消',
        value: 'Q'
      }, {
        label: '已退货',
        value: 'T'
      }]
    },
    {
      label: "商场编码",
      prop: "storeNo",
      type: "select",
      search: true,
      dicUrl: `/admin/mall/store/list`,
      props: {
        label: 'storeName',
        value: 'storeNo'
      },
      formatter: (val, value, label) => {
        return `${label}(${value})`
      },
      rules: [
        {
          required: true,
          message: '请选择广告位置编码',
          trigger: 'blur'
        }
      ],
      span: 12
    }
  ]
}
